package Project;

import static org.junit.Assert.*;

import java.awt.Color;

import org.junit.Test;
import Hulppakket.*;
public class TriangleTest {

	@Test
	public void test() {
		Ray r = new Ray(new Point3f(0,0,0), new Vector3f(1,0,0));
		Triangle t =  new Triangle(new Point3f(10,-8,-2),new Point3f(10,8,10), new Point3f(10,8,-2), new Color3f(Color.yellow));
		boolean hit = t.hit(r,0,10000,new Hitrecord());
		if(!hit) fail("no hit!");
	}

}
